package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "区域")
public class Area {

    private static final long serialVersionUID = 1L;

    /** 区域id */
    @Schema(description = "区域id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 区域名称 */
    @Schema(description = "区域名称")
    @NotBlank(message = "区域名称不能为空")
    private String areaName;

    /** 备注说明 */
    @Schema(description = "备注说明")
    @NotBlank(message = "备注说明不能为空")
    private String areaNote;
    /** 点数 */
    @Schema(description = "点数")
    @TableField(exist = false)
    private Integer num;
}